<div style="vertical-align: top; width: 100%; height: 100%;">

    <?php
    $_D->DTime_start($debug);
    include_once($FOLDER_PATH_PHP . "/class/class_list.php");


    $list[$layer_id] = new $CLASS_NAME(); //생성자



    if (!$num) {
        $count = 20;
    } else {
        $count = $num;
    }
    if (!$order_by) {
        $order_by = "ord_num";
    }
    if (!$page) {
        $page = 0;
    }
    $init_arr["count"] = $count;
    $init_arr["table"] = $TABLE;
    $init_arr["category"] = $category;
    $init_arr["key_search"] = $key_search;
    $init_arr["key_search_field"] = $key_search_field;
    $init_arr["page"] = $page;
    $init_arr["layer_id"] = $layer_id;
    $init_arr["bbs_path"] = $BBS_PATH;
    $init_arr["order_by"] = $order_by;
    $init_arr["parent_uid"] = $parent_uid;


    $list[$layer_id]->init($init_arr); //초기화
    echo"<script  language='JavaScript' charset='utf-8'>$('#listCount').val('$count');</script>";

    $status_modify = "N"; // 수정시 
    switch ($bbs_mode) {
        case "write":
            include("$FOLDER_PATH_PHP/write.php");
            break;
        case "write_ok":
            include("$FOLDER_PATH_PHP/write_ok.php");
            break;
        case "view":
            include("$FOLDER_PATH_PHP/view.php");
            echo"<br>";
            include("$FOLDER_PATH_PHP/list.php");
            break;
        case "mod":
            $status_modify = "Y";
            include("$FOLDER_PATH_PHP/list.php");
            break;
        case "mod_ok":
            include("$FOLDER_PATH_PHP/mod_ok.php");
            break;
        case "re":
            include("$FOLDER_PATH_PHP/write.php");
            break;
        case "re_ok":
            include("$FOLDER_PATH_PHP/write_ok.php");
            break;
        case "del":
            include("$FOLDER_PATH_PHP/del_ok.php");
            break;
        case "all_del_ok":
            include("$FOLDER_PATH_PHP/all_del_ok.php");
            break;
        case "all_move_ok":
            include("$FOLDER_PATH_PHP/all_move_ok.php");
            break;
        default:
            include("$FOLDER_PATH_PHP/list.php");
            break;
    }

    $list[$layer_id]->close();
    $_D->DTime_end($debug);
    ?>
</div>
